package org.akomantoso.core.io.util.torefactor;

import java.util.HashMap;
import java.util.Map;

import org.akomantoso.core.data.Img;
import org.akomantoso.core.data.MarkerElements;
import org.akomantoso.core.io.util.Instantiator;
import org.akomantoso.core.io.util.group.ANmarkerGroup;
import org.akomantoso.core.util.MapUtil;

public final class MarkerElementUtil {

	private MarkerElementUtil() {
	}

	public static final Map<String, Instantiator<MarkerElements>> ITEMS = new HashMap<String, Instantiator<MarkerElements>>();

	static {

		MapUtil.copy(ANmarkerGroup.MAP, ITEMS);

		// ********************************************************************
		// HTMLmarker

		// img
		ITEMS.put(Img.ELEMENT, new Instantiator<MarkerElements>() {
			public Img instantiate() {
				return new Img();
			}
		});
	}
}